package cn.marinda.totipotentwar.global;

import org.bukkit.entity.Player;

/**
 * 抽象的游戏数据
 *
 * @author hwj
 * @date 2022/02/03
 */
public abstract class AbstractGameData {
    private Player player;
    private double points;
    private double integral;
    private int phase;
    /**
     * 游戏数据
     *
     * @param player   球员
     * @param points   点
     * @param integral 积分
     * @param phase    阶段
     */
    public AbstractGameData(Player player, double points, double integral, int phase) {
        this.player = player;
        this.points = points;
        this.integral = integral;
        this.phase = phase;
    }


    public Player getPlayer() {
        return player;
    }

    public void setPlayer(Player player) {
        this.player = player;
    }

    public double getPoints() {
        return points;
    }

    public void setPoints(double points) {
        this.points = points;
    }

    public double getIntegral() {
        return integral;
    }

    public void setIntegral(double integral) {
        this.integral = integral;
    }

    public int getPhase() {
        return phase;
    }

    public void setPhase(int phase) {
        this.phase = phase;
    }
}
